<?php

include('app_setting.php');

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => $_CONFIG['app']['name'],
    'import' => array(
        'application.models.active_record.*',
        'application.helpers.function_lib',
    ),
    // application components
    'components' => array(
        // uncomment the following to use a MySQL database
        'db' => array(
            'connectionString' => 'mysql:host=' . $_CONFIG['db']['host'] . ';dbname=' . $_CONFIG['db']['name'],
            'emulatePrepare' => true,
            'username' => $_CONFIG['db']['username'],
            'password' => $_CONFIG['db']['password'],
            'charset' => 'utf8',
            'enableParamLogging' => true,
            'enableProfiling' => true,
        ),
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CWebLogRoute',
                    'categories' => 'system.*',),
            ),
        ),
    ),
    'params' => array(
        //bonus
        'bonus' => include_once 'bonus.php',
        'bonus_board' => include_once 'bonus_board.php',)
);